package com.reguang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import lombok.extern.slf4j.Slf4j;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 
 * <p>Title: UserApplication</p>
 * <p>Description: 用户系统启动类</p>
 * @author weibiao
 * @date 2019年12月24日
 */
@EnableTransactionManagement
@SpringBootApplication
@MapperScan(basePackages = "com.reguang.mapper")
@ComponentScan(basePackages = { "com.reguang", "org.n3r.idworker" })
@EnableSwagger2 // 表示开启Swagger接口配置
@Slf4j
@EnableAspectJAutoProxy(exposeProxy = true)
public class UserApplication {
	public static void main(String[] args) {
		SpringApplication.run(UserApplication.class, args);
		log.info("【热光科技】-【用户系统启动成功】");
	}
}
